package top.huhuiyu.springboot3.config;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.io.Serial;
import java.io.Serializable;

@Component
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@ConfigurationProperties(prefix = "redis-config")
public class RedisInfo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    private Integer database;
    private String host;
    private Integer port;
    private String password;

}
